package com.yangj.web;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.yangj.dao.GameDao;
import com.yangj.dao.ServiceTypeDao;
import com.yangj.model.Game;
import com.yangj.model.ServiceType;
import net.sf.json.JSONArray;
public class GetNavTopItems extends JsonServlet {
	private GameDao serviceGameDao = new GameDao();
	@Override
	public String dealInput(Map<String, String[]> input) {
		
		List<Game> serviceGames= serviceGameDao.getAll();
		return JSONArray.fromObject(serviceGames).toString();
	}
}
